package com.pro.api;

import com.pro.bean.Mentor;
import com.pro.dto.Dto;
import com.pro.service.MentorService;
import com.pro.util.dtoUtil.DtoUtil;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Mentor)表控制层
 *
 * @author makejava
 * @since 2020-12-24 11:43:42
 */
@RestController
@RequestMapping("mentor")
public class MentorController {
    /**
     * 服务对象
     */
    @Resource
    private MentorService mentorService;

    //查询所有数据
    @GetMapping("selAll")
    public Dto selAll(){
        return DtoUtil.returnSuccess(mentorService.selAll());
    }

}